import { Loading ,Message} from 'element-ui';

let loading;
 
const startLoading = () => {
    // loading = Loading.service({
    //     lock: true,
    //     text: '下载中……',
    //     background: 'rgba(0, 0, 0, 0.7)'
    // });
    Message.warning("文件正在下载中，麻烦耐心等待，请勿重复点击操作。")
};
 
const endLoading = () => {
    // loading.close();
};
 
export const showLoading = () => {
    startLoading();
};
 
export const hideLoading = () => {
    // endLoading();
};